import { request } from "./request"

/** 停车场 新增*/
export const parkingAdd = (data = {}) => {
  return request({
    method: "post",
    url: "/parking/add/",
    data
  })
}

/**
 * 停车场 列表
 */
export const parkingList = (data = {}) => {
  return request({
    method: "post",
    url: "/parking/list/",
    data
  })
}

/**
 * 停车场 详情
 */
export const parkingDetailed = (id) => {
  return request({
    method: "post",
    url: "/parking/detailed/",
    data: {
      id
    }
  })
}

/**
 * 停车场 编辑
 */
export const parkingEdit = (data = {}) => {
  return request({
    method: "post",
    url: "/parking/edit/",
    data
  })
}



/**
 * 停车场 删除
 */
export const parkingDelete = (id) => {
  return request({
    method: "post",
    url: "/parking/delete/",
    data: {
      id
    }
  })
}